#pragma once
#include "audionode.h"

#include "Notes.h"


/** A class to generate an additive synth sample.
*/
class CAdditiveSynth :
	public CAudioNode
{
public:
	CAdditiveSynth(void);
	virtual ~CAdditiveSynth(void);

public:
    virtual void Start();
    virtual bool Generate();

	void SetSamples( double *aSamples, int aNumSamples ) { mSamples = aSamples; mNumSamples = aNumSamples; }


private:
	double *mSamples;
	int mNumSamples;
	int mPosition;
};

